<div class="g-login">
  <div class="m-hd">
    <div class="title">
      <h1>会员登录</h1>
      <div class="small">login</div>
    </div>
    <div class="f-cb"></div>
  </div>
  <div class="m-form">
    <form action="{$url|'member/Login/postLogin'}" method="post" id="form">
      <fieldset>
        <div class="formitm">
          <label class="lab">用户名/邮箱：</label>
          <div class="ipt">
            <input name="username" type="text" class="u-ipt u-ipt-4 " id="username" value="" maxlength="250" datatype="s5-250|e" sucmsg="用户名或邮箱验证通过！" nullmsg="请输入用户名或邮箱！"  errormsg="用户名至少5个字符或邮箱格式不正确！"  />
            <span class="suffix"></span>
            <p></p>
          </div>
        </div>
        <div class="formitm">
          <label class="lab">密 码：</label>
          <div class="ipt">
            <input name="password" type="password" class="u-ipt u-ipt-4" id="password" value="" maxlength="250" datatype="*6-250" sucmsg="密码验证通过！" nullmsg="请输入密码！"  errormsg="密码至少5个字符！"  />
            <span class="suffix"></span>
            <p></p>
          </div>
        </div>
        <div class="formitm">
          <div class="ipt">
            <label class="u-opt">
              <input name="remember" type="checkbox" value="1">
              一周内自动登录 </label>
            <label class="u-opt"><a href="{$url|'member/Forgot/index'}">忘记密码？</a></label>
          </div>
        </div>
        <div class="formitm formitm-1">
          <button class="u-btn" type="submit">立即登录</button>
          <span class="status" id="status"></span> </div>
        {if="!empty($loginList)"}
        <div class="formitm">
          <label class="lab">其他登录：</label>
          <div class="ipt otalog">
          <!--{loop="$loginList $vo"}-->
          <a href="{$vo.url}"><img src="__ROOT__/apps/{$vo.app}/public/oauth/{$vo.mark}/1.gif" /> {$vo.name}</a>
          <!--{/loop}-->
          </div>
        </div>
        {/if}
      </fieldset>
    </form>
    <div class="f-cb"></div>
  </div>
  <div class="log-mn">
    <div class="tt"> 我们诚挚地邀请您加入<br />
      DUXCMS会员中心 </div>
    {if="$userConfig['REG_STATUS']"}
    <div class="tip">如果您还没有会员账户</div>
    <a class="u-btn u-btn-lg s-btn-c3" href="{$url|'member/Register/index'}">立即注册</a> {/if}
    <div class="f-cb"></div>
  </div>
  <div class="f-cb"></div>
</div>
<script>
Do.ready('base','form','dialog',function() {
	$('#form').duxForm({
		returnFun:function(){
			var url = "{$url|'member/Index/index'}";
			window.location.href=url;
		}
		});
});
</script> 
